<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * 提现列表模型
 * author : hxq
 * date : 2017-10-26.
 */
class Depositlist extends Model
{
    public $timestamps = false;

    protected $table = 'depositlist';

    protected $primaryKey = 'depositlistID';

    protected $fillable = [
        'depositlistID', //主键id
        'consumeID', //钱包记录id
        'userID', //消费人id
        'cardID', //银行卡id
        'time', //添加时间
        'status', //审核状态
        'id', //审核人id
        'audit_time', //审核时间
        'note', //审核备注
    ];

    public function card()
    {
        return $this->hasOne('App\\Models\\Card', 'cardID', 'cardID');
    }
}
